package com.qiaofang.applet.service.other.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qiaofang.applet.common.base.BaseDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * @Author: youqing.yang
 * @Create: 2020/11/09 14:31
 * @Description:
 **/
@Data
@Document(collection = "other_synchronous_data")
@ApiModel("数据同步记录表")
@NoArgsConstructor
@AllArgsConstructor
public class SynchronousData extends BaseDomain {

    @ApiModelProperty(value = "同步类型")
    private String synchronousType;

    @ApiModelProperty(value = "应拉取数量")
    private Integer pullCount;

    @ApiModelProperty(value = "更新成功数量")
    private Integer resolveCount;

    @ApiModelProperty(value = "拉取失败数量")
    private Integer pullFailCount;

    @ApiModelProperty(value = "解析失败数量")
    private Integer resolveFailCount;

    @ApiModelProperty(value = "同步开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startData;

    @ApiModelProperty(value = "同步结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endData;

}
